home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.mactech.com 2010
/
ftp.mactech.com.tar
/
ftp.mactech.com
/
machack
/
Hacks97
/
WarriorsProgress.sit
/
Warrior’s Progress
/
source code
/
Source
/
Libraries
/
Views
/
Pane.h
< prev
next >
Wrap
Text File
|
1997-06-28
|
917b
|
50 lines
// Pane.h
#ifndef Pane_h
#define Pane_h
#ifndef Rectangle_h
#include "Rectangle.h"
#endif
class View;
class Sizeable;
class RegionObject;
class WindowObject;
class Pane
{
private:
WindowObject *window;
Rectangle bounds;
View *view;
protected:
void MapTo( WindowObject& );
void Unmap();
void SetBounds( Rectangle );
public:
Pane();
~Pane();
View& operator*() const { Assert( view != 0 ); return *view; }
View *operator->() const { Assert( view != 0 ); return view; }
const Sizeable& Size() const;
bool IsEmpty() const { return view == 0; }
void SetView( View& );
void ClearView();
bool Mapped() const { return window != 0; }
WindowObject& Window() const { Assert( window != 0 ); return *window; }
const Rectangle& Bounds() const { Assert( window != 0 ); return bounds; }
virtual void Clip( RegionObject& ) const = 0;
};
#endif